export function onResizeEnd(call) {
    function debounce(func) {
        var timer;
        return function (event) {
            if (timer) clearTimeout(timer);
            timer = setTimeout(func, 100, event);
        };
    }

    window.addEventListener('resize', debounce(call))
}

export function getHeight() {
    return window.innerHeight
}

export function getWidth() {
    var width = document.documentElement.offsetWidth
    return width > 750 ? 750 : width
}